import request from '@/utils/request'

// 查询每日收入账列表
export function listReportCash(query) {
  return request({
    url: '/supplier/reportCash/list',
    method: 'get',
    params: query
  })
}

// 查询每日收入账详细
export function getReportCash(id) {
  return request({
    url: '/supplier/reportCash/' + id,
    method: 'get'
  })
}

// 新增每日收入账
export function addReportCash(data) {
  return request({
    url: '/supplier/reportCash',
    method: 'post',
    data: data
  })
}

// 修改每日收入账
export function updateReportCash(data) {
  return request({
    url: '/supplier/reportCash',
    method: 'put',
    data: data
  })
}

// 删除每日收入账
export function delReportCash(id) {
  return request({
    url: '/supplier/reportCash/' + id,
    method: 'delete'
  })
}

// 导出每日收入账
export function exportReportCash(query) {
  return request({
    url: '/supplier/reportCash/export',
    method: 'get',
    params: query
  })
}